rXDest[i]; controllerXPos[i]-=controllerVel[i]; } else { if((controllerXDest[i]-controllerXPos[i])stringMax) { stringCounter[i]=0; } //check user records full...if so, skip to first user // else if(numUserRecords==USERS_MAX && stringCounter[i]==1) { else if (!offeredANewUser[i]) { if (newUserCount>=numNewUsersPossible) { if (stringCounter[i]==1) { stringCounter[i]=2; } } else { offeredANewUser[i] = 1; newUserCount++; } } } else if(myPressed(i,MAPPED_PADLdown)==1 && !controllerLockedIn[i]) { Play_sfx_volume (FX_MENU_SUB_SELECT_BEEP, options[OPTION_SFX_VOLUME]); if(--stringCounter[i]<0) { stringCounter[i]=stringMax; } //check user records full...if so, skip to "player x" // else if(numUserRecords==USERS_MAX && stringCounter[i]==1) { else if (!offeredANewUser[i]) { if (newUserCount>=numNewUsersPossible) { if (stringCounter[i]==1) { stringCounter[i]=0; } } else { offeredANewUser[i] = 1; newUserCount++; } } } Set_on_off(fluffActors[i+MAX_PADS],BODY,ON); //turn on purple bar if(stringCounter[i]==0) sprintf(tempString,"^xPlayer %d",i+1); else if(stringCounter[i]==1) sprintf(tempString,"^xNew Player"); else { sprintf(tempString,"^x"); strcat(tempString,(userRecords[stringCounter[i]-2].name)); sprintf(tempString1," %d-%d-%d",userRecords[(stringCounter[i]-2)].wins, userRecords[(stringCounter[i]-2)].losses, userRecords[(stringCounter[i]-2)].ties); strcat(tempString,tempString1); } // Select_font(font14); Select_font(font18); //ASL Font_ot(hi_ot); // fontYellow1(); fontWhite1(); //ASL printCentered1(320,-61+(48*i),tempString,NULL); } else if(editing[i]) { p=userRecords[userRecordNumber[i]].name; stringCounter[i]=userRecordNumber[i]+2; //when we lock in name, it points to this user record if(reptKey(i,MAPPED_PADLup,2)) { doNameChange(p,currentLetter[i],1,0); } if(reptKey(i,MAPPED_PADLdown,2)) { doNameChange(p,currentLetter[i],-1,0); } if(reptKey(i,MAPPED_PADLright,2)) { Play_sfx_volume (FX_MENU_SUB_SELECT2_BEEP, options[OPTION_SFX_VOLUME]); if(currentLetter[i]0)currentLetter[i]--; } if(reptKey(i,MAPPED_PADRup,2)) { if(currentLetter[i]!=0 || p[1]!=0) { //don't delete first letter unless another one exist for(j=currentLetter[i];j 1) { userRecordNumber[i]=stringCounter[i]-2; } if (offeredANewUser[i]) { newUserCount--; offeredANewUser[i] = 0; } Set_rgb(fluffActors[i],BODY,-64,-64,-64); } } else //ASL to have controllers change if not connected { // controller illegal Set_transparent(fluffActors[i],BODY,TRANSON); } if((plugUse & CONTROLLER_MASK[i]) && !controllerLockedIn[i]) { Set_rgb(fluffActors[i],BODY,0,0,0); } else if (!(plugUse & CONTROLLER_MASK[i])) { Set_rgb(fluffActors[i],BODY,-64,-64,-64); // Set_transparent(fluffActors[i],BODY,1); controllerXPos[i]=controllerPos[i]=controllerLockedIn[i]=controllerMoving[i]=stringCounter[i]=editing[i]=0; Set_on_off(fluffActors[i+MAX_PADS],BODY,OFF); } } //test for timer countdown/reset //reset whenever anybody moves //or reset if somebody out of center hasn't locked in for(i=0;i= 0) { strcpy(user_stat[i].user_name, userRecords[userRecordNumber[i]].name); } } killAllFluffActo Bights;++i) { tb=&tickerBarInfo[i]; tb->last_score_home=0; tb->last_score_visit=0; tb->last_score_home=0; tb->last_score_visit=0; tb->last_period=0; tb->last_clock=_PERIOD_LENGTH[options[OPTION_PERIOD_LENGTH]] *60; tb->last_clock_60th=0; tb->flag=0; tb->periods_til_start=0; tb->delay=0; tb->last_hl_number=0; resetGoalClocks(tb); hl_ptr = &day_highlights[i]; //get games in progress started timeZoneDiff=game_time_zone-time_zone_city[hl_ptr->h_team]; if(timeZoneDiff>=3) //more than 3 hours of difference, so end game { //50 % of the time game in third period //50% of the time game done if(Random_percent(50,100))finishGame(&tickerBarInfo[i],hl_ptr); else gameInPeriod(&tickerBarInfo[i],hl_ptr,3,TOWARDS_END); } else if(timeZoneDiff==2) { //20 % of the time game over //20 % of the time game in 2nd period //60 % of the time game in 3rd period if(Random_percent(20,100))finishGame(&tickerBarInfo[i],hl_ptr); else if(Random_percent(20,100))gameInPeriod(&tickerBarInfo[i],hl_ptr,2,TOWARDS_END); else gameInPeriod(&tickerBarInfo[i],hl_ptr,3,TOWARDS_BEGIN); } else if(timeZoneDiff==1) { //20 % of the time game in end of 2nd //60 % of the time game in begin 2nd period //20 % of the time game in end of 1st period if(Random_percent(20,100))gameInPeriod(&tickerBarInfo[i],hl_ptr,1,TOWARDS_END); else if(Random_percent(20,100))gameInPeriod(&tickerBarInfo[i],hl_ptr,2,TOWARDS_END); else gameInPeriod(&tickerBarInfo[i],hl_ptr,2,TOWARDS_BEGIN); } else if(timeZoneDiff==0) { if(Random_percent(50,100)) { tb->flag=(game_time_zone<<1); tb->periods_til_start=1; tb->delay=Ranged_random(30*10,30*45); } else //100 % of the time game in begin of 1st gameInPeriod(&tickerBarInfo[i],hl_ptr,1,TOWARDS_BEGIN); } else { tb->flag|=(time_zone_city[hl_ptr->h_team]<<1); tb->periods_til_start=-(timeZoneDiff-1); tb->delay=PERIODS_WORTH_OF_DELAY; } } //randomize highlights for(i=0;is3d.pos.x += (message->newpos.x - message->s3d.pos.x) / message->speed; message->s3d.pos.y += (message->newpos.y - message->s3d.pos.y)